package com.wmz.crm.workbench.mapper;

import com.wmz.crm.workbench.entity.Clue;

import java.util.List;
import java.util.Map;

public interface ClueMapper {
    int deleteByPrimaryKey(String id);

    int insert(Clue row);

    int insertSelective(Clue row);

    Clue selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Clue row);

    int updateByPrimaryKey(Clue row);

    //保存根据创建的线索信息进行
    int insertCreateClue(Clue clue);

    //根据分页条件查询线索信息
    List<Clue> selectClueByConditionForPage(Map<String,Object> map);
    //根据分页条件查询线索总条数
    int selectCountOfClueByCondition(Map<String,Object> map);

    //根据id查询线索信息
    Clue selectClueById(String id);

    //根据id更新线索信息
    int updateClueById(Clue clue);

    //根据ids删除线索信息
    int deleteClueByIds(String[] ids);

    //根据id查询线索详细信息
    Clue selectClueForDetailById(String id);

    //根据clueId删除线索
    int deleteClueByClueId(String clueId);
}
